body {
    background: #d8edff;
}

.layout-navbar .navbar-dropdown .badge-notifications {
    top: 0.5rem;
}
.img-anpham-home {
    max-height: 20rem;
    object-fit: cover;
    height: 80%;
    /* width: 100%; */
}
.jq-ry-container {
    padding-left: 0;
}
.color-black {
    color: black;
}
.color-white {
    color: white !important;
}
.item {
    text-align: center;
    /* border: 1px solid black; */
}
.img-baiviet {
    max-width: 100%;
    height: 13rem;
    object-fit: cover;
    width: 100%;
}
.form-check-input[type='checkbox'] {
    border-color: #0082c6;
}
.badge.badge-notifications {
    position: absolute;
    top: auto;
    display: inline-block;
    margin: 0;
    transform: translate(-50%, -30%);
}
.select2-results__options {
    position: relative;
}
.tomtat {
    line-height: 1.5em;
    height: 6em;
    overflow: hidden;
    text-align: justify;
}
.avatar-sm {
    width: 4rem;
    height: 4rem;
}
.blockquote i {
    min-width: 18px;
}
.avatar-sm img {
    object-fit: cover !important;
}
.info-img {
    display: flex;
    justify-content: center;
}
.justify-content-end {
    display: flex;
    justify-content: flex-end;
}
.align-item-center {
    align-items: center;
}
.info-img img {
    width: 250px;
    height: 350px;
}
.justify-content-between {
    display: flex;
    justify-content: space-between;
}
.author-icon {
    display: flex;
    align-items: center;
}
.author-icon span {
    font-size: 0.75rem;
}
.noidung img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.author-icon_image img {
    width: 25px;
    height: 25px;
    white-space: normal;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 5px;
    transition: 0.12s ease-out;
    vertical-align: middle;
}
.addmodal-thumbnail {
    height: 340px;
    width: 210px;
    border: 1px dashed;
    object-fit: cover;
}

iframe {
    height: 90vh;
}
.modal-xxl {
    max-width: 95vw;
}
.table-phieunhap {
    table-layout: fixed;
    width: 100%;
}
.max-line-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.max-line-4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.content-wrapper {
    padding: 0 1rem;
}
.card-img {
    object-fit: cover;
    height: 10rem;
    width: 10rem;
}
.card-author {
    padding: 0.5rem 1.5rem;
}
.manage-list .card-body {
    padding-bottom: 0;
}
.custom-btn-group {
    position: absolute;
    right: 0;
}
.red-text {
    color: red;
}

.custom-input-group {
    width: unset;
    box-shadow: unset;
}
.table-responsive {
    padding: 1rem;
    overflow-x: unset;
}
fieldset {
    border: 1px solid #d9dee3;
}
legend {
    color: #697a8d;
    float: unset;
    width: unset;
    padding: 10px 0;
    position: relative;
    display: inline-block;
    font-size: 1rem;
    padding: 0rem 0.5rem;
    margin-left: 1rem;
}
.modal-xl {
    max-width: 80vw;
}
.select2-container--open {
    z-index: 10000;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 1rem;
}
.select2-selection__clear {
    display: none;
}
.btn-no-outline {
    padding: 0;
}

.form-label {
    margin-bottom: 0;
}
.title-input {
    min-height: 2rem;
}
.label-normal {
    text-transform: unset;
    font-size: 1rem;
}
.align-text-center {
    text-align: center;
}
.required:after {
    content: ' *';
    color: red;
    font-size: 1rem;
}
.img-table {
    width: 80px;
    max-height: 105px;
    object-fit: cover;
    z-index: 10;
    transition: all 0.5s;
    cursor: pointer;
}
.img-table:not(:first-child) {
    margin-left: -2rem;
}
.img-table:hover {
    z-index: 20;
    transform: scale(1.1);
}
.content-phieunhap {
    padding: 0;
    border: none !important;
}
.phieumuon-item {
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}
.rating-group {
    gap: 2rem;
    text-align: justify;
    flex-direction: row;
    align-items: center;
}
/* The Modal (background) */
#image-viewer {
    display: none;
    position: fixed;
    z-index: 9000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}
#image-viewer .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}
#image-viewer .modal-content {
    animation-name: zoom;
    animation-duration: 0.2s;
}
@keyframes zoom {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
#image-viewer .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
#image-viewer .close:hover,
#image-viewer .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    #image-viewer .modal-content {
        width: 100%;
    }
    .modal-dialog {
        margin: 0 !important;
    }
    .phieumuon-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
table .book-info label {
    width: 110px;
    margin-bottom: 0;
}
.spacing-label i,
.dropdown-menu a i {
    width: 20px;
}
.white-text {
    color: white;
}
.text-align-justify {
    text-align: justify;
}
.bookmark-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.bookmark-item i {
    margin-right: 1rem;
}
.bookmarks p {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
.swal2-container {
    z-index: 1091;
}
.hide {
    display: none;
}

/* thêm class để custom bootstrap */
.no-padding {
    padding-left: 0;
    padding-right: 0;
}

.ag-row-focus {
    z-index: 999;
}

.ag-cell-value,
.ag-cell {
    overflow: visible;
}

.tacvu-btn-group {
    z-index: 1000;
    overflow: visible;
}

.nganh_table_tkhoa {
    width: 10%;
}
.menu-item:hover {
    cursor: pointer;
}

/* custom cho tomselect */
.ts-dropdown-content {
    .option {
        padding: 6px 12px;
    }
    .option:hover {
        background-color: #3c8dbc;
        color: white;
    }
}

.bg_cl_menuHor {
    height: 2rem;
    background-color: #017dc5;
    cursor: pointer;
}
.bg_cl_menuHor_a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: color 0.3s ease;
    text-decoration: none;
}

.bg_cl_menuHor_a:hover {
    color: #fff;
    font-weight: 700;
}

.bg_cl_menuHor:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    font-weight: 700;
}

.dropdown-container {
    position: relative;
}
.dropdown-menuHor {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #017dc5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100%;
    z-index: 999999;
    padding: 8px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 4px 4px;
}

.dropdown-menuHor a {
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
}

.dropdown-menuHor a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    padding-left: 20px;
}

.dropdown-container:hover .dropdown-menuHor {
    display: block !important;
    animation: fadeIn 0.3s;
    z-index: 999999 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS cho menu responsive */
.responsive-menu {
    position: relative;
}

.mobile-menu-toggle {
    background-color: #017dc5;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    width: 100%;
    text-align: left;
}

.mobile-menu {
    display: none;
    background-color: #017dc5;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInMobile 0.3s ease forwards;
}

.mobile-menu .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu .nav-link {
    color: white;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
}

.mobile-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
    font-weight: bold;
}

/* Hiển thị nút hamburger và ẩn menu chính trên mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu.show {
        display: block;
    }

    .nav-pills.nav-justified {
        display: none !important;
    }
}
@keyframes fadeInMobile {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Phần loading khi gọi AJAX */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
}

.loading-overlay.show {
    visibility: visible;
    opacity: 1;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

button.btn > * {
    pointer-events: none;
}

button.btn > i.fa-solid {
    margin-right: 5px;
}

/* ========================================
   CSS VARIABLES - THƯ VIỆN HOU
   ======================================== */
:root {
    /* Primary Theme Colors */
    --bs-primary: #005baa !important;
    --bs-primary-rgb: 1, 125, 197 !important;
    --primary-color: #005baa !important;
    --primary-hover: #0751d8 !important;

    /* Common Spacing */
    --header-padding: 0.75rem;
    --mobile-header-padding: 0.5rem;

    /* Icon Sizes */
    --icon-size: 1.1rem;
    --mobile-icon-size: 1.2rem;
    --menu-icon-size: 24px;
    --small-icon-size: 8px;

    /* Shadows */
    --button-focus-shadow: 0 0.125rem 0.25rem 0 rgba(1, 125, 197, 0.236);

    /* Dropdown Sizing */
    --university-dropdown-width: 20rem;
    --university-dropdown-offset: -8rem;
}
/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Primary Color Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Icon utilities */
.icon-primary {
    color: var(--primary-color);
}

.icon-small {
    font-size: var(--small-icon-size);
}

.icon-medium {
    font-size: var(--icon-size);
}

.icon-large {
    font-size: var(--mobile-icon-size);
}

/* Layout utilities */
.divider-primary {
    height: 3px;
}

.hero-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Header action utilities */
.header-action-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.header-action-link:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-action-item {
    display: flex;
    align-items: center;
}

.menu-toggle-btn {
    border: none !important;
    background: transparent !important;
    color: inherit;
}

.menu-toggle-btn:hover {
    color: var(--primary-color) !important;
}

/* Mobile navigation utilities */
.mobile-nav-offcanvas {
    --bs-offcanvas-width: 280px;
}
/* ========================================
   BUTTON COMPONENTS
   ======================================== */

/* Primary Button Styles */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: var(--button-focus-shadow) !important;
}
/* 
Mobile Button Adjustments */
@media (max-width: 767.98px) {
    .btn-login {
        padding: 0.075rem 0.25rem;
        font-size: 0.875rem;
    }
}
/* ========================================
   HEADER COMPONENTS
   ======================================== */

.header_wrapper {
    padding: var(--header-padding) 0;
    display: flex;
    align-items: center;
}

.header-right {
    margin-left: auto;
}

.header-right .bx {
    font-size: var(--icon-size);
}

/* Mobile responsive adjustments for header */
@media (max-width: 767.98px) {
    .header_wrapper {
        padding: var(--mobile-header-padding) 0;
        justify-content: space-between;
    }

    .header-right {
        gap: 0.5rem !important;
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .header-right .bx {
        font-size: var(--mobile-icon-size);
        padding: 0.5rem;
    }

    .order-first {
        order: -1;
    }
}
/* ========================================
   NAVIGATION COMPONENTS
   ======================================== */

.navbar-primary {
    background-color: var(--primary-color) !important;
}

.navbar-primary .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    color: white !important;
}

.navbar-primary .navbar-nav .nav-link {
    color: white !important;
    text-transform: uppercase !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar-primary .navbar-nav .nav-link:hover {
    color: #f8f9fa !important;
}

.navbar-primary .navbar-nav .nav-link.active {
    color: white !important;
    position: relative;
}

.navbar-primary .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: white;
}

/* Desktop Navigation Styling */
@media (min-width: 992px) {
    .navbar-primary .navbar-nav .nav-item {
        position: relative;
    }

    /* Vertical separators between nav items */
    .navbar-primary .navbar-nav .nav-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -0.5rem;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 20px;
        background-color: rgba(255, 255, 255, 0.3);
    }
}

/* Mobile Navigation Styling */
@media (max-width: 991.98px) {
    .navbar-primary .navbar-nav {
        margin-top: 1rem;
    }

    .navbar-primary .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .navbar-primary .navbar-nav .nav-link.active::after {
        display: none;
    }

    .navbar-primary .navbar-nav .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 0.25rem;
    }
}
/* 1. Variables - Định nghĩa các biến CSS */
@import url('./_variables.css');
/* ========================================
   DROPDOWN COMPONENTS
   ======================================== */

.dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: var(--dropdown-shadow);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* University dropdown specific styles */
.university-dropdown .dropdown-menu {
    width: var(--university-dropdown-width);
    margin-left: var(--university-dropdown-offset);
    min-width: var(--university-dropdown-width);
}

.university-locations .bx {
    font-size: var(--small-icon-size);
}

/* CUSTOM */
.hover-bg-light:hover {
    background-color: #f8f9fa !important;
    transition: background-color 0.2s ease;
}

.news-title a:hover {
    color: #007bff !important;
    transition: color 0.2s ease;
}

/* Font size extra small */
.fs-xs {
    font-size: 0.75rem !important;
}

/* Font weight 400 and 600 */
.fw-400 {
    font-weight: 400 !important;
}

.fw-600 {
    font-weight: 600 !important;
}

/* Link effect */
.link-effect {
    transition: color 0.3s ease;
}

.link-effect:hover {
    color: var(--bs-primary) !important;
}

/* Avatar styles */
.avatar-xl {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Ellipsis for 2 lines with tighter line spacing */
.ellipsis-line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3 !important;
}
.ellipsis-line-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3 !important;
}
.ellipsis-line-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hover-primary-transition {
    transition: color 0.3s ease;
}

.hover-primary-transition:hover {
    color: var(--bs-primary) !important;
}

/* Prevent horizontal scrollbar */
body,
html {
    overflow-x: hidden;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

footer a:hover {
    color: #3498db !important;
}

@media (max-width: 768px) {
    .stats-grid .stat-item {
        margin-bottom: 1rem !important;
    }
}

/* Nút nhảy về top */
a.back-to-top {
    display: none;
    position: fixed;
    bottom: 18px;
    right: 18px;
}
a.back-to-top.show {
    display: block;
}
a.back-to-top i {
    display: block;
    font-size: 22px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    color: #fff;
    background-color: #005baa;
    /* background-image: linear-gradient(to bottom,#5a82b1,#416b9f); */
    border-radius: 30px;
    text-align: center;
    transition: 0.2s ease-in-out;
    -moz-transition: 0.2s ease-in-out;
    -webkit-transition: 0.2s ease-in-out;
    -o-transition: 0.2s ease-in-out;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
}

/* SEARCH PAGE */

/* Search Form Styles */
.search-form-container {
    margin-bottom: 3rem;
}

.advanced-search-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 91, 170, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 91, 170, 0.1);
}

.search-section {
    border-bottom: 1px solid #e9ecef;
}

.search-section:last-child {
    border-bottom: none;
}

.section-header-search {
    background: #e5e7e9;
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #005baa;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

.section-content {
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: #005baa;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #005baa;
    z-index: 5;
    font-size: 0.9rem;
}

.modern-input,
.modern-select {
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus,
.modern-select:focus {
    border-color: #005baa;
    box-shadow: 0 0 0 0.2rem rgba(0, 91, 170, 0.25);
    background: white;
}

.search-btn {
    padding: 0.875rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #005baa, #0066cc);
    border: none;
    color: white;
}

.search-btn:hover {
    background: linear-gradient(45deg, #004a99, #005baa);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 91, 170, 0.3);
}

/* Search Results Styles */
.search-results-container {
    margin-bottom: 3rem;
}

.results-header {
    text-align: center;
}

.results-title {
    color: #005baa;
    font-weight: 600;
    font-size: 1.8rem;
}

.results-title i {
    color: #005baa;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.book-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 91, 170, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 91, 170, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 91, 170, 0.2);
    border-color: #005baa;
}

.book-cover-container {
    position: relative;
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.book-cover {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 91, 170, 0.2);
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.cover-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    background: rgba(56, 139, 212, 0.623);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.cover-overlay i {
    color: white;
    font-size: 2rem;
}

.book-card:hover .cover-overlay {
    opacity: 1;
}

.book-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-title-link {
    text-decoration: none;
    color: inherit;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 3.6rem;
}

.book-title-link:hover .book-title {
    color: #005baa;
}

.book-meta-info {
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.meta-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: #005baa;
}

.book-summary {
    margin-bottom: 1rem;
}

.book-summary p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-keywords {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.book-keywords i {
    color: #005baa;
    font-size: 0.9rem;
}

.keyword-tag {
    background: linear-gradient(45deg, #005baa, #0066cc);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 91, 170, 0.2);
}

.keyword-tag:hover {
    background: linear-gradient(45deg, #004a99, #005baa);
    transform: translateY(-1px);
    color: white;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 91, 170, 0.1);
    margin-top: auto;
}

.book-status {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.book-status.available {
    color: #28a745;
}

.book-status i {
    margin-right: 0.5rem;
}

.call-number {
    font-size: 0.9rem;
    background: rgba(0, 91, 170, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

.call-label {
    color: #005baa;
    margin-right: 0.5rem;
    font-weight: 600;
}

.call-number strong {
    color: #005baa;
}

/* No Results Styles */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    /* padding: 4rem 2rem; */
}

.no-results-content {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 91, 170, 0.1);
    border: 1px solid rgba(0, 91, 170, 0.1);
}

.no-results img {
    max-width: 250px;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.no-results h3 {
    color: #005baa;
    margin-bottom: 1rem;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.search-tips {
    text-align: left;
    background: rgba(0, 91, 170, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid rgba(0, 91, 170, 0.1);
}

.search-tips h5 {
    color: #005baa;
    margin-bottom: 1rem;
}

.search-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.search-tips li {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Pagination Styles */
.pagination-container {
    text-align: center;
    margin-top: 3rem;
}

.pagination .page-link {
    color: #005baa;
    border-color: rgba(0, 91, 170, 0.2);
}

.pagination .page-item.active .page-link {
    background-color: #005baa;
    border-color: #005baa;
}

.pagination .page-link:hover {
    color: white;
    background-color: #005baa;
    border-color: #005baa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-title {
        font-size: 2rem;
    }

    .section-content {
        padding: 1.5rem;
    }

    .book-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .search-header {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .search-title {
        font-size: 1.8rem;
    }

    .search-subtitle {
        font-size: 1rem;
    }

    .section-content {
        padding: 1rem;
    }

    .book-info {
        padding: 1rem;
    }
}

.no-bounce,
.no-bounce:hover {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* News Grid Styles - Similar to Book Grid but customized for news articles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 91, 170, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 91, 170, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 91, 170, 0.2);
    border-color: #005baa;
}

.news-cover-container {
    position: relative;
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.news-cover {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 91, 170, 0.2);
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.news-card:hover .cover-overlay {
    opacity: 1;
}

.news-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title-link {
    text-decoration: none;
    color: inherit;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 3.6rem;
}

.news-title-link:hover .news-title {
    color: #005baa;
}

.news-meta-info {
    margin-bottom: 1rem;
}

.news-summary {
    margin-bottom: 1rem;
    flex: 1;
}

.news-summary p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 91, 170, 0.1);
    margin-top: auto;
}

.news-date,
.news-views {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.news-date i,
.news-views i {
    color: #005baa;
    margin-right: 0.25rem;
}

/* Ellipsis classes for text truncation */
.ellipsis-line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ellipsis-line-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive adjustments for news grid */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .news-info {
        padding: 1rem;
    }
}
.search-results-table.card:hover {
    transform: none !important;
    transition: none !important;
}
.search-results-table {
    height: auto;
}
/* Responsive styles for search page */
@media (max-width: 576px) {
    .search-form-container {
        margin-top: 1rem !important;
    }

    .section-header-search {
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .search-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .results-title {
        font-size: 1.25rem;
    }

    .card {
        border-radius: 0.5rem;
    }

    .badge {
        font-size: 0.65em;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .search-form-container {
        margin-top: 2rem !important;
    }

    .results-title {
        font-size: 1.4rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .search-form-container {
        margin-top: 3rem !important;
    }
}

/* Custom spacing for mobile cards */
.d-lg-none .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.d-lg-none .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Ensure images maintain aspect ratio */
.d-lg-none img {
    max-width: 100%;
    height: auto;
}

/* Responsive text truncation */
@media (max-width: 576px) {
    .d-lg-none h6 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .d-lg-none small {
        font-size: 0.75rem;
    }
}
.page-item .active > a {
    color: #fff !important;
}
.search {
    background-color: #fff;
    margin: 1px;
    border-radius: 7px;
}
